import path from 'path';
import { PictureFile } from '../picture-file/picture-file';

/**
 * 图片文件夹
 *
 * @author chitanda
 * @date 2022-05-19 12:05:33
 * @export
 * @class PictureFolder
 */
export class PictureFolder {
  name: string;

  files: PictureFile[] = [];

  constructor(folderPath: string, filePaths: string[]) {
    this.name = path.basename(folderPath);
    this.files = filePaths.map((filePath: string) => new PictureFile(filePath));
  }
}
